package com.wmx.designMode.adapter;

/**
 * @author wmx
 * @version 1.0
 * @date 2019/8/13 10:34
 * @description:
 */
public class Phone {

    public void charger(Voltage5V voltage5V){
        if(voltage5V.output5V()==5){
            System.out.println("充电");
        }else if(voltage5V.output5V()>5){
            System.out.println("不能充电");
        }


    }
}
